<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core"  prefix="c"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
<title>文章审核</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link type="text/css" rel="Stylesheet" href="resource/css/admin-main.css" />
 <link type="text/css" rel="Stylesheet" href="resource/css/responsive5152.css" />
<link type="text/css" rel="Stylesheet" href="resource/css/main5152.css" />
<script type="text/javascript" src="resource/js/jquery-1.8.3.js"></script>
<script type="text/javascript" src="resource/js/master.js"></script>
<script type="text/javascript" src="resource/js/custom.js"></script>
<script type="text/javascript" src="resource/js/jflickrfeed.js"></script>
      
        
</head>

<body>
       <!--头部模板  -->
        <jsp:include page="../inc/Adhead_nav.jsp" />  
     <!--new top-->
     <!--new top-->
    <div id="wrap">
    

        <div class="head">

            <div class="user_info">
                <dl>
                    <dt><img src="resource/images/admin.png" alt="qq_39485384" /></dt>
                    <dd>
                        <ul>
                            <li class="user_name"><span>文章审核</span></li>
                        </ul>
                    </dd>
                </dl>
            </div>

            <div style="float:right; margin-top:20px; color:Red;">
                
            </div>
        </div>


        <div class="tabs_header">
            <ul id="ul_tab" class="tabs"  style="width:120%">
                <li><a href="AdArticleSer"><span>文章审核</span></a></li>
                <li><a href="AdUserSer"><span>用户管理</span></a></li>
                <li><a href="AdColumnSer"><span>专栏审核</span></a></li>
            </ul>
        </div>

<div id="sel_div" class="h_status">
类型：<select id="selType" onchange="window.location=this.value;">
<option>
&nbsp;请选择&nbsp;
</option >
<option value="AdArticleSer">
全部
</option >
<c:forEach items="${articleCat}" var="ac">
<option value="AdArticleSer?sortId=${ac.getSortId()}">${ac.getSortName()}</option>
</c:forEach>
</select>
</div>
<table id="lstBox" cellspacing="0">
<tr><th class="tdleft">标题</th><th >发布时间</th><th>分类</th><th>发布者</th><th>&nbsp;审核&nbsp;</th></tr>
<c:forEach items="${article}" var="ar"><tr>
<td class="tdleft">
<div class="page-container">
<div class="row">  
<div class="span9 page-content">
<article class="faq-item">
<div class="faq-question">
<h5><a href="#">${ar.getArticleTitle()}</a></h5>
</div>
<div class="faq-answer">
${ar.getArticleContent()}
</div>
</article>
</div>
</div>
</div></td>
<td>${ar.getStringDate()}</td>
<td>${ar.getArticlecat().getSortName() }</td>
<td>${ar.getUser().getUserName() }</td>
<td><a href="AdArticleSer?op=ArticlePass&id=${ar.getArticleId()}">通过</a>|<a href="AdArticleSer?op=ArticleNoPass&id=${ar.getArticleId()}">不通过</a></td>

</tr></c:forEach>
</table>
<div class="page_nav"><span>  共1页</span><strong>1</strong> </div>

<div id="setcat_div" style="display:none;">
    <div class="frame">
          <input name="close" type="button" class="close" onclick="cancel_cat()">
        <div id="setcat_box"></div>
        <p style="text-align:center;">
            <input type="button" value="确定" class="btn_01" onclick="save_cat()" />
        </p>
    </div>
</div>

<script type="text/javascript" >
    $(function(){
        $("#lstBox tr").each(function(){
            var tr=$(this);            
            if(tr.text().indexOf("待审核")>-1)
            {
                var tds=$(tr.find("td")[5]);
                var a= $(tds.find("a"));
                a.each(function(){
                    if($(this).text().indexOf("置顶")>-1)
                    {
                        $(this).remove();
                        tds.html(tds.html().replace("|  |","|"));
                    }
                });
            }           
        });
    });
</script>

    </div>
    <!--尾部模板  -->
<jsp:include page="../inc/footer_nav1.jsp"/> 
</body>
</html>
